package com.hong.drive.server.modules.share.mapper;

import com.hong.drive.server.modules.share.entity.CloudDriveShare;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hong.drive.server.modules.share.vo.CloudDriveShareUrlListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Zhihong
* @description 针对表【cloud_drive_share(用户分享表)】的数据库操作Mapper
* @createDate 2023-06-17 16:37:22
* @Entity com.hong.drive.server.modules.share.entity.CloudDriveShare
*/
public interface CloudDriveShareMapper extends BaseMapper<CloudDriveShare> {
    /**
     * 查询用户的分享列表
     *
     * @param userId
     * @return
     */
    List<CloudDriveShareUrlListVO> selectShareVOListByUserId(@Param("userId") Long userId);

    /**
     * 滚动查询已存在的分享ID集合
     *
     * @param startId
     * @param limit
     * @return
     */
    List<Long> rollingQueryShareId(@Param("startId") long startId, @Param("limit") long limit);

}




